﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="AbAccountCode.aspx.cs" Inherits="AbAccountCodePage" Title="AbAccountCode List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    Ab Account Code List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1"
        PersistenceMethod="Session" />
    <br />
    <data:EntityGridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
        DataSourceID="AbAccountCodeDataSource" DataKeyNames="KindPment" AllowMultiColumnSorting="false"
        AllowPaging="True" DefaultSortColumnName="" DefaultSortDirection="Ascending"
        ExcelExportFileName="Export_AbAccountCode.xls">
        <Columns>
            <asp:CommandField ShowSelectButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="KindPment" HeaderText="Kind Pment" SortExpression="[KIND_PMENT]"
                ReadOnly="True" />
            <asp:BoundField DataField="AccDeb" HeaderText="Acc Deb" SortExpression="[ACC_DEB]" />
            <asp:BoundField DataField="AccName" HeaderText="Acc Name" SortExpression="[ACC_NAME]" />
            <asp:BoundField DataField="AccCreMed" HeaderText="Acc Cre Med" SortExpression="[ACC_CRE_MED]" />
            <asp:BoundField DataField="AccCreServ" HeaderText="Acc Cre Serv" SortExpression="[ACC_CRE_SERV]" />
            <asp:BoundField DataField="AccCreDrug" HeaderText="Acc Cre Drug" SortExpression="[ACC_CRE_DRUG]" />
            <asp:BoundField DataField="AccCreDisp" HeaderText="Acc Cre Disp" SortExpression="[ACC_CRE_DISP]" />
            <asp:BoundField DataField="T0Code" HeaderText="T0" SortExpression="[T0_code]" />
            <asp:BoundField DataField="T1" HeaderText="T1" SortExpression="[T1]" />
            <asp:BoundField DataField="T2" HeaderText="T2" SortExpression="[T2]" />
            <asp:BoundField DataField="T3" HeaderText="T3" SortExpression="[T3]" />
            <asp:BoundField DataField="T4Code" HeaderText="T4" SortExpression="[T4_code]" />
            <asp:BoundField DataField="T5" HeaderText="T5" SortExpression="[T5]" />
            <asp:BoundField DataField="KindPmentDesc" HeaderText="Kind Pment Desc" SortExpression="[KIND_PMENT_DESC]" />
            <asp:BoundField DataField="CompanyAddress" HeaderText="Company Address" SortExpression="[CompanyAddress]" />
            <asp:BoundField DataField="Attention" HeaderText="Attention" SortExpression="[Attention]" />
            <asp:BoundField DataField="CheckVersion" HeaderText="Check Version" SortExpression="[CheckVersion]" />
        </Columns>
        <EmptyDataTemplate>
            <b>No AbAccountCode Found!</b>
        </EmptyDataTemplate>
    </data:EntityGridView>
    <br />
    <asp:Button runat="server" ID="btnAbAccountCode" OnClientClick="javascript:location.href='AbAccountCodeEdit.aspx'; return false;"
        Text="Add New"></asp:Button>
    <data:AbAccountCodeDataSource ID="AbAccountCodeDataSource" runat="server" SelectMethod="GetPaged"
        EnablePaging="True" EnableSorting="True">
        <Parameters>
            <data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
            <data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
            <asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex"
                Type="Int32" />
            <asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize"
                Type="Int32" />
            <data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
        </Parameters>
    </data:AbAccountCodeDataSource>
</asp:Content>
